package com.web.exiaodao.remote.vo;

import com.web.exiaodao.business.constant.JConstant;
import com.wordnik.swagger.annotations.ApiModel;
import com.wordnik.swagger.annotations.ApiModelProperty;

/**
 * @author eason.zt
 * @ClassName: FanliOrderVo
 * @Description:返利-订单表 Vo
 * @date 2017-02-13 14:46:51
 */
@ApiModel(value = "返利-订单表Vo对象")
public class FanliOrderVo {

    @ApiModelProperty(value = "主键，自动增长")
    private Long id;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "商家编号,商家编号")
    private Long busId;
    @ApiModelProperty(value = "下单时间,下单时间")
    private String creatOrderTime;
    @ApiModelProperty(value = "订单金额,订单金额")
    private String orderMoney;
    @ApiModelProperty(value = "订单号,订单号")
    private String orderNo;
    @ApiModelProperty(value = "商品名称,商品名称")
    private String shopName;
    @ApiModelProperty(value = "商品简介,商品简介")
    private String shopBrief;
    @ApiModelProperty(value = "商品图片,商品图片")
    private String shopImg;
    @ApiModelProperty(value = "预计返利金额,预计返利金额")
    private Double fanliMoney;
    @ApiModelProperty(value = "预计返利日期(yyyy-MM-dd),,预计返利日期")
    private String faliTime;
	@ApiModelProperty(value="用户ID,用户ID，外键，关联用户表")
	private Long userId;
	@ApiModelProperty(value="平台预计返利金额,平台预计返利金额")
	private Double platformFanliMoney;
    /**
     * @see JConstant.FanliOrderStatus
     */
    @ApiModelProperty(value = "返利订单状态,返利订单状态，0：即将可以（即将可以用返利）(最近下单) 1：已经返利 2：无返利 （已经返利要2个月）")
    private String faliOrderStatus;

	public FanliOrderVo(Long id, String createTime, Long busId,
			String creatOrderTime, String orderMoney, String orderNo,
			String shopName, String shopBrief, String shopImg,
			Double fanliMoney, String faliTime, Long userId,
			Double platformFanliMoney, String faliOrderStatus) {
		super();
		this.id = id;
		this.createTime = createTime;
		this.busId = busId;
		this.creatOrderTime = creatOrderTime;
		this.orderMoney = orderMoney;
		this.orderNo = orderNo;
		this.shopName = shopName;
		this.shopBrief = shopBrief;
		this.shopImg = shopImg;
		this.fanliMoney = fanliMoney;
		this.faliTime = faliTime;
		this.userId = userId;
		this.platformFanliMoney = platformFanliMoney;
		this.faliOrderStatus = faliOrderStatus;
	}

	public FanliOrderVo() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public void setBusId(Long busId) {
        this.busId = busId;
    }

    public Long getBusId() {
        return busId;
    }

    public void setCreatOrderTime(String creatOrderTime) {
        this.creatOrderTime = creatOrderTime;
    }

    public String getCreatOrderTime() {
        return creatOrderTime;
    }

    public void setOrderMoney(String orderMoney) {
        this.orderMoney = orderMoney;
    }

    public String getOrderMoney() {
        return orderMoney;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopBrief(String shopBrief) {
        this.shopBrief = shopBrief;
    }

    public String getShopBrief() {
        return shopBrief;
    }

    public void setShopImg(String shopImg) {
        this.shopImg = shopImg;
    }

    public String getShopImg() {
        return shopImg;
    }

    public void setFanliMoney(Double fanliMoney) {
        this.fanliMoney = fanliMoney;
    }

    public Double getFanliMoney() {
        return fanliMoney;
    }

    public void setFaliTime(String faliTime) {
        this.faliTime = faliTime;
    }

    public String getFaliTime() {
        return faliTime;
    }

    public void setFaliOrderStatus(String faliOrderStatus) {
        this.faliOrderStatus = faliOrderStatus;
    }

    public String getFaliOrderStatus() {
        return faliOrderStatus;
    }

    public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}
	

	public Double getPlatformFanliMoney() {
		return platformFanliMoney;
	}

	public void setPlatformFanliMoney(Double platformFanliMoney) {
		this.platformFanliMoney = platformFanliMoney;
	}

	@Override
    public String toString() {
        return "FanliOrderVo[busId=" + busId + ", creatOrderTime=" + creatOrderTime
                + ", orderMoney=" + orderMoney + ", orderNo=" + orderNo + ", shopName=" + shopName
                + ", fanliMoney=" + fanliMoney + ", faliTime=" + faliTime + ", faliOrderStatus=" + faliOrderStatus
                + "]";
    }

    /**
     * 返利统计的对象
     */
    public static final class FanliStatistics {
        private Long   busId;//商家id
        private String businessName;//返利商家名称
        private String month;//返利的月份
        private String monthFanliMoney;//一月的返利金额

        public Long getBusId() {
            return busId;
        }

        public void setBusId(Long busId) {
            this.busId = busId;
        }

        public String getBusinessName() {
            return businessName;
        }

        public void setBusinessName(String businessName) {
            this.businessName = businessName;
        }

        public String getMonth() {
            return month;
        }

        public void setMonth(String month) {
            this.month = month;
        }

        public String getMonthFanliMoney() {
            return monthFanliMoney;
        }

        public void setMonthFanliMoney(String monthFanliMoney) {
            this.monthFanliMoney = monthFanliMoney;
        }
    }

    /**
     * 返利临时订单对象
     */
    public static final class FanliTemporder {
        //key:跳转到商户携带的ukey
        //orderNo:下单编号
        //createOrderTime:下单时间
        //orderMoney：订单金额
        //shopName：商品名称
        //shopBrief：商品简介
        //shopImg：商品图片
        private String key;
        private String orderNo;
        private String createOrderTime;
        private String orderMoney;
        private String shopName;
        private String shopBrief;
        private String shopImg;

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getOrderNo() {
            return orderNo;
        }

        public void setOrderNo(String orderNo) {
            this.orderNo = orderNo;
        }

        public String getCreateOrderTime() {
            return createOrderTime;
        }

        public void setCreateOrderTime(String createOrderTime) {
            this.createOrderTime = createOrderTime;
        }

        public String getOrderMoney() {
            return orderMoney;
        }

        public void setOrderMoney(String orderMoney) {
            this.orderMoney = orderMoney;
        }

        public String getShopName() {
            return shopName;
        }

        public void setShopName(String shopName) {
            this.shopName = shopName;
        }

        public String getShopBrief() {
            return shopBrief;
        }

        public void setShopBrief(String shopBrief) {
            this.shopBrief = shopBrief;
        }

        public String getShopImg() {
            return shopImg;
        }

        public void setShopImg(String shopImg) {
            this.shopImg = shopImg;
        }
    }
}

